<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="org.vectrics.recruiter.struts.JobApplicationForm" %>
<%@ page import="org.vectrics.hibernate.ThreadProperties" %>
<%
	String domainId = ThreadProperties.getUriDomainId();
	String formAction = "/profile/" + domainId + "/job/apply";
%>


<jsp:useBean id="jobApplicationForm" class="org.vectrics.recruiter.struts.JobApplicationForm" scope="request"/>

<vectrics:errors/>

<%
	String jobId = request.getParameter("jobId");
%>

<vectrics:jobView summary="true" formName="jobApplicationForm" jobId="<%=jobId%>" />"/><br>

<html:form action="<%=formAction%>" method="POST" focus="">
	<html:hidden property="jobId"/>
	<table>
		<tr>
			<td valign="TOP">
				<table width="600" cellpadding="4" cellspacing="1">

					<tr>
						<td class="formBg2" valign="top">
							<font class="formLabelClass">Choose a Resume</font>
						</td>
						<td class="formBg2" valign="top">
							<vectrics:personResumeCombo property="resumeId" styleClass="formComboClass" value="<%=resumeId%>" personId=""/><br>
						</td>
					</tr>
					
					<tr>
						<td class="formBg1" valign="TOP" align="left"></td>
						<td class="formBg1" valign="TOP" align="left">
							<input name="submit" type="submit" value="Submit" class="formButton">&nbsp;<input name="cancel" type="submit" value="Cancel" class="formButton"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>